<?php
require_once "config.php";

$id = $_GET["id"];
//楼层id
var_dump($id);

//用户id
$uid = $_SESSION["id"];
var_dump($uid);

//点赞的sql
$sql = "INSERT INTO `zan` (`id`,`yid`,`uid`) VALUES (NULL,'$id','$uid');";
//执行sql
$conn->query($sql);

//回到首页
header("Location:index.php");
?>